# Makefile for producing papers

DOC_NAME=ictac
SRC = $(DOC_NAME).tex lang.tex minsky.tex termination.tex  finkel.tex intro.tex concl.tex
BIB_SRC= referen.bib DSbib.bib
COMMAND=pdflatex

$(DOC_NAME).pdf : $(SRC) $(DOC_NAME).bbl
	 $(COMMAND) $(DOC_NAME).tex

$(DOC_NAME).bbl : $(DOC_NAME).tex  $(BIB_SRC)
	$(COMMAND) $(DOC_NAME).tex
	bibtex $(DOC_NAME)
	$(COMMAND) $(DOC_NAME).tex	
clean:
	rm -rfv *.aux
	rm -rfv *.log
	rm -rfv *.bbl
	rm -rfv *.blg
	rm -rfv *.toc
	rm -rfv $(PDF_NAME).pdf
again:
	$(COMMAND) $(DOC_NAME).tex
	make



